public class test4 {
    public static void main(String[] args) {
        new swim() {
            @Override
            public void swim() {
                System.out.println("狗在游泳");
            }
        };
    }
}
